<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">

      <ul class="list-group">
        <?php foreach($v['content'] as $key => $p):?>
        <li <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="viewBoxCss list-group-item<?php if($key==0){echo ' first';}if($key+1 == count($v['content'])){echo ' last';}?>"><span class="badge datetime"><i <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="viewBoxCss glyphicon glyphicon-menu-right"></i></span><a class="Atitle viewBoxCss" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> href="<?php if($p['out_link'] != ''){?>__APP__/<?php echo $p['out_link']; }else{?>__APP__/<?php echo $p['name'];?><?php }?>"><?php echo cut_str($p['title'],$v['listTitleLength'],0);?></a>
        
        <?php if($p['module'] == 0){ echo getMultiCateTree($p['id'],'trees');}else{echo getMultiProductCateTree($p['id'],'trees');} ?>
        
          
        </li> 
        <?php endforeach; ?>
      </ul>
      
      
      <?php if(empty($v['content'])){?>
          <p class="emptycontent">暂无内容</p>
      <?php }?>
      <div class="clearfix"></div>
    </div>
  </div>
</div>